import request from '@/utils/request'

// 查询三会管理列表
export function listDealMeeting(query) {
  return request({
    url: '/meeting/dealMeeting/list',
    method: 'get',
    params: query
  })
}

// 查询三会管理详细
export function getDealMeeting(id) {
  return request({
    url: '/meeting/dealMeeting/' + id,
    method: 'get'
  })
}

// 保存三会管理
export function saveDealMeeting(data) {
  return request({
    url: '/meeting/dealMeeting/save',
    method: 'post',
    data: data
  })
}

// 删除三会管理
export function delDealMeeting(id) {
  return request({
    url: '/meeting/dealMeeting/' + id,
    method: 'delete'
  })
}

// 导出三会管理
export function exportDealMeeting(query) {
  return request({
    url: '/meeting/dealMeeting/export',
    method: 'get',
    params: query
  })
}

// 最新(会议时间) 三会管理
export function findLatestMeeting(query) {
  return request({
    url: '/meeting/dealMeeting/findLatestMeeting',
    method: 'get',
    params: query
  })
}

// 根据三会管理ID获取议案列表
export function getByMeetingId(meetingId) {
  return request({
    url: '/meeting/dealMeeting/getByMeetingId/' + meetingId,
    method: 'get'
  })
}

// 保存议案列表
export function saveBillList(params) {
  return request({
    url: '/meeting/dealMeeting/saveBillList/' + params.meetingId,
    method: 'post',
    data: params.list
  })
}
